//用指针实现字符串逆序
#include<stdio.h>
#include<string.h>
void Reserve(char*str)
{
	char *left=str;
	char*right=str+strlen(str)-1;
	while(left<right)
	{
		char tmp=0;
		tmp=*left;
	    *left=*right;
	    *right=tmp;
	    left++;
	    right--;
	}

}
int main()
	{
		char str[2000]={0};
		while(gets(str))
		{
			Reserve(str);
			printf("%s ",str);
		}
		return 0;
	}
	严重性	代码	说明	项目	文件	行	禁止显示状态	详细信息
错误	C4996	'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.	Project4	C:\Users\ZhuanZ\source\repos\Project4\FileName.cpp	6
